package com.foreknow.service;

import com.foreknow.entity.Rule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RuleService {


    public List<Rule> queryRuleForAll() throws Exception;

    public List<Rule> queryRuleByCondition(Integer deptId) throws Exception;


    public int updateRule(Rule rule) throws Exception;

    public int addRule(Rule rule) throws Exception;

    public int deleteRule(List<Integer> id) throws Exception;

    public List<Rule> selectForRuleListPage(Integer deptId, Integer pageSize, Integer currentPage) throws Exception;

    public int countOfDept(Integer deptId) throws Exception;

}
